﻿//Created by Action Script Viewer - http://www.buraks.com/asv
package Classes.announcers {
    import Classes.*;
    import Classes.effects.*;

    public class Announcer extends NPC {

        private var m_customLayerName:String;
        private var m_customGuitarPick:String;

        public function Announcer(_arg1:String, _arg2:Boolean, _arg3:Number=-1){
            super(_arg1, _arg2, _arg3);
            this.m_customLayerName = "npc";
        }
        public function get customLayerName():String{
            return (this.m_customLayerName);
        }
        public function set customlayerName(_arg1:String):void{
            this.m_customLayerName = _arg1;
        }
        override protected function getLayerName():String{
            return (this.m_customLayerName);
        }
        public function forceUpdateArrowWithCustomIcon(_arg1:String):void{
            this.m_customGuitarPick = _arg1;
            this.updateArrow();
        }
        override public function onPlayAction():void{
            super.onPlayAction();
        }
        override protected function updateArrow():void{
            this.createStagePickEffect();
        }
        override protected function createStagePickEffect():void{
            if (this.m_customGuitarPick){
                m_stagePickEffect = (MapResourceEffectFactory.createEffect(this, EffectType.STAGE_PICK) as StagePickEffect);
                m_stagePickEffect.setPickType(this.m_customGuitarPick);
                m_stagePickEffect.float();
            } else {
                removeStagePickEffect();
            };
        }

    }
}//package Classes.announcers 
